package com.fosun.spr.plugin.dict.api.service.impl;

import java.util.Date;
import java.util.UUID;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.fosun.spr.plugin.dict.api.dao.DictDao;
import com.fosun.spr.plugin.dict.api.service.DictService;
import com.fosun.spr.core.base.CoBaseService;
import com.fosun.spr.core.utils.ExtAsserts;
import com.fosun.spr.plugin.dict.api.service.model.ListDictValueSpModel;
import com.fosun.spr.plugin.dict.api.service.model.ListDictValueSrModel;

@Transactional(rollbackFor = { RuntimeException.class, Exception.class })
@Service
public class DictServiceImpl extends CoBaseService implements DictService {
	@Autowired
	private DictDao dictDao;
	//@Resource
	//private DictMapper dictMapper;
 
	@Override
	public ListDictValueSrModel listDictValue(ListDictValueSpModel spModel) {
		//ExtAsserts.notNull(spModel.getSetCode(), "setCode");
		ListDictValueSrModel srModel = new ListDictValueSrModel();
		srModel.setDatas(dictDao.listDictValue(spModel));
//		srModel.setTotalCount(dictDao.listDictValueCount(spModel));
		return srModel;
	}	
	
}
